package com.xbq.exceleditor.bean.viewmodel

import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.MetaDataUtils
import com.xbq.xbqsdk.net.common.vo.LoginVO
import dagger.hilt.android.lifecycle.HiltViewModel
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject

/**
 * Author: liaohaiping
 * Time: 2020-10-30
 * Description:
 */
@HiltViewModel
class AboutViewModel @Inject constructor(@ApplicationContext val context: Context) : ViewModel() {
    val loginData = MutableLiveData<LoginVO>()
    val appName by lazy { AppUtils.getAppName() }
    val appVersion by lazy { "版本号：${AppUtils.getAppVersionName()}" }
    val kefuqq by lazy{"客服邮箱: ${MetaDataUtils.getMetaDataInApp("QQ")}@qq.com"}
    val appIcon by lazy { AppUtils.getAppIconId() }
}